/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.model.dto.manager;

import cn.hutool.core.bean.BeanUtil;
import com.medusa.gruul.integral.api.entity.IntegralShop;
import com.medusa.gruul.integral.api.entity.StepNumber;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @Description: 用户步数相关DTO
 * @Author: xiaoq
 * @Date : 2019/12/16 16:31
 */
@Data
@ApiModel("用户兑换步數所需相关信息DTO")
public class UserStepNumberDto {

	@ApiModelProperty(value = "用户当前步数")
	private Integer todayStep;

	@ApiModelProperty(value = "目标步数步数")
	private Integer targetStep;

	@ApiModelProperty(value = "可兑换积分")
	private BigDecimal integral;

	@ApiModelProperty(value = "完成度 --百分比")
	private String completionDegree;

	public StepNumber coverStepNumber(){
		StepNumber stepNumber = new StepNumber();
		BeanUtil.copyProperties(this,stepNumber);
		return stepNumber;
	}
}
